package net.wy.commons.web.jacson;

import org.codehaus.jackson.map.*;
import org.codehaus.jackson.map.ser.BeanSerializerFactory;
import org.codehaus.jackson.type.JavaType;

/**
 * Created with IntelliJ IDEA.
 * User: Administrator
 * Date: 12-8-30
 * Time: 上午11:38
 * To change this template use File | Settings | File Templates.
 */
public class SimpleAwareSerializerFactory extends BeanSerializerFactory {

    protected SimpleAwareSerializerFactory(Config config) {
        super(config);
    }

    public JsonSerializer<Object> createSerializer(SerializationConfig config,JavaType origType,BeanProperty property) throws JsonMappingException {
        Class clazz = origType.getRawClass();
        return super.createSerializer(config, origType, property);
    }


}
